package com.example.sangong.myenum;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CardEnum {
    /**
     * 红心
     */
    HEARTS_A("A","hx-a.avif",1),
    HEARTS_2("2","hx-2.avif",2),
    HEARTS_3("3","hx-3.avif",3),
    HEARTS_4("4","hx-4.avif",4),
    HEARTS_5("5","hx-5.avif",5),
    HEARTS_6("6","hx-6.avif",6),
    HEARTS_7("7","hx-7.avif",7),
    HEARTS_8("8","hx-8.avif",8),
    HEARTS_9("9","hx-9.avif",9),
    HEARTS_10("10","hx-10.avif",10),
    HEARTS_J("11","hx-j.avif",11),
    HEARTS_Q("12","hx-q.avif",12),
    HEARTS_K("13","hx-k.avif",13),
    /**
     * 方块
     */
    DIAMOND_A("A","fk-a.avif",1),
    DIAMOND_2("2","fk-2.avif",2),
    DIAMOND_3("3","fk-3.avif",3),
    DIAMOND_4("4","fk-4.avif",4),
    DIAMOND_5("5","fk-5.avif",5),
    DIAMOND_6("6","fk-6.avif",6),
    DIAMOND_7("7","fk-7.avif",7),
    DIAMOND_8("8","fk-8.avif",8),
    DIAMOND_9("9","fk-9.avif",9),
    DIAMOND_10("10","fk-10.avif",10),
    DIAMOND_J("11","fk-j.avif",11),
    DIAMOND_Q("12","fk-q.avif",12),
    DIAMOND_K("13","fk-k.avif",13),
    /**
     * 黑桃
     */
    SPADES_A("A","ht-a.avif",1),
    SPADES_2("2","ht-2.avif",2),
    SPADES_3("3","ht-3.avif",3),
    SPADES_4("4","ht-4.avif",4),
    SPADES_5("5","ht-5.avif",5),
    SPADES_6("6","ht-6.avif",6),
    SPADES_7("7","ht-7.avif",7),
    SPADES_8("8","ht-8.avif",8),
    SPADES_9("9","ht-9.avif",9),
    SPADES_10("10","ht-10.avif",10),
    SPADES_J("11","ht-j.avif",11),
    SPADES_Q("12","ht-q.avif",12),
    SPADES_K("13","ht-k.avif",13),

    /**
     * 梅花
     */
    PLUM_BLOSSOM_A("A","mh-a.avif",1),
    PLUM_BLOSSOM_2("2","mh-2.avif",2),
    PLUM_BLOSSOM_3("3","mh-3.avif",3),
    PLUM_BLOSSOM_4("4","mh-4.avif",4),
    PLUM_BLOSSOM_5("5","mh-5.avif",5),
    PLUM_BLOSSOM_6("6","mh-6.avif",6),
    PLUM_BLOSSOM_7("7","mh-7.avif",7),
    PLUM_BLOSSOM_8("8","mh-8.avif",8),
    PLUM_BLOSSOM_9("9","mh-9.avif",9),
    PLUM_BLOSSOM_10("10","mh-10.avif",10),
    PLUM_BLOSSOM_J("11","mh-j.avif",11),
    PLUM_BLOSSOM_Q("12","mh-q.avif",12),
    PLUM_BLOSSOM_K("13","mh-k.avif",13),

    /**
     * 小王
     */
    BLACK_J_Q_K_E_R("J_Q_K_E_R","xw.avif",100),
    /**
     * 大王
     */
    RED_J_Q_K_E_R("J_Q_K_E_R","dw.avif",100),



    ;
    /**
     * 名称
     */
    private String name;
    /**
     * 图片
     */
    private String picUrl;
    /**
     * 代表数字
     */
    private Integer val;
}
